# coding=utf-8
__author__ = 'liubin'

from flask_wtf import Form
from wtforms import StringField
from wtforms.validators import DataRequired
from flask.ext.babelex import gettext as _

class ChangePwdForm(Form):
    """
    密码更改 表单
    """
    class Meta:
        """
        定义国际化
        Meta class
        """
        locales = ['zh_CN', 'zh']

    # 表单字段定义
    old_pwd = StringField(_('old password'), [DataRequired()])
    new_pwd = StringField(_('new password'), [DataRequired()])